package my.headfirstjava.strategy.v4;

/**
 * Created by Administrator on 2018/8/22.
 */
public abstract class Character {


    WeaponBehavior weaponBehavior;



   public abstract  void whoiam();

    public  void fight(){
        weaponBehavior.userWeapon();
    }


    public WeaponBehavior getWeaponBehavior() {

        return weaponBehavior;
    }

    public void setWeaponBehavior(WeaponBehavior weaponBehavior) {
        this.weaponBehavior = weaponBehavior;
    }
}
